<template>
  <van-nav-bar :title="title"  left-arrow @click-left="goBack">
    <template #right>
      <van-icon name="search" size="20" @click="goSearch"/>
    </template>
  </van-nav-bar>
</template>

<script>
export default {
  name:'videobar',
  props: {
    title: {
      type: String,
      default: "在家看视频"
    },
  },
  methods: {
    goBack() {
      this.$router.go("-1")
    },
    goSearch() {
      this.$router.push("/search")
    }
  },
};
</script>

<style lang="scss" scoped>
</style>